package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.iwhalecloud.bss.kite.common.constant.KeyConsts;
import com.iwhalecloud.bss.kite.cucc.common.constant.LocalKeyConsts;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.AttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;
import com.ztesoft.bss.common.util.ContextUtil;
/**
 * A端客户联系电话
 * */
public class AClientPhoAttrHandler extends AbstractAttrHandler {
    @Override
    public void after(KiteAttr attr, KiteInst inst, AttrData data) {
        // 河南 MV A端客户联系电话必填
        String provinceCode = ContextUtil.getLoginInfo().getUserInfo().getPostProvinceNbr();
        if (LocalKeyConsts.PROVINCE_HENAN.equals(provinceCode)) {
            attr.setIsNull(KeyConsts.IFTRUE_F);
        }
        super.after(attr, inst, data);
    }
}
